package com.cskaoyan.service.promote;

import com.cskaoyan.bean.common.BasePageInfoCouponList;
import com.cskaoyan.bean.po.MarketCoupon;
import com.cskaoyan.bean.po.MarketCouponUser;
import com.github.pagehelper.PageInfo;

import javax.servlet.http.HttpServletRequest;
import java.text.ParseException;

/**
 * @BelongsProject: market-project
 * @BelongsPackage: com.cskaoyan.service.promote
 * @CreateTime: 2022-11-20  21:18
 * @Description: TODO
 * @Version: 1.0
 */
public interface CouponService {
    PageInfo<MarketCoupon> selectByBasePageInfo(BasePageInfoCouponList in);

    void updateByMarketCoupon(MarketCoupon marketCoupon);

    void deleteByMarketCoupon(MarketCoupon marketCoupon);

    MarketCoupon selectById(Integer id);

    PageInfo<MarketCouponUser> selectByBasePageInfoCoupon(HttpServletRequest request);

    void insertByMarketCoupon(MarketCoupon marketCoupon) throws ParseException;
}